#!coding:utf-8
from django.conf.urls.defaults import patterns, url

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

#页面展示功能相关
urlpatterns = patterns('lottery_terminal.views',
    url(r'^$', "index"),
    url(r'^index/', "index"),
    url(r'^double/', "double"),
    url(r'^shishicai/', "shishicai"),
    url(r'^shishicai_two/', "shishicai_two"),
    url(r'^shishicai_two_two/', "shishicai_two_two"),
    url(r'^shishicai_three_one/', "shishicai_three_one"),
    url(r'^shishicai_three_two/', "shishicai_three_two"),
    url(r'^shishicai_three_three/', "shishicai_three_three"),
    url(r'^shishicai_three/', "shishicai_three"),
    url(r'^shishicai_four/', "shishicai_four"),
    url(r'^shishicai_five/', "shishicai_five"),
    url(r'^shishicai_five_one/', "shishicai_five_one"),
    url(r'^shishicai_six/', "shishicai_six"),
    url(r'^double_dantuo/', "double_dantuo"),
    url(r'^game_rule/(?P<href>[^/]+)$', "game_rules"),
    url(r'^gonggao/(?P<href>[^/]+)$', "gonggao"),
    url(r'^qilecai/', "qilecai"),
    url(r'^qilecai_dantuo/', "qilecai_dantuo"),
    url(r'^fucai3D/', "fucai3D"),
    url(r'^dongfang6A1/', "dongfang6A1"),
    url(r'^fucai3Dzx/', "fucai3Dzx"),
    url(r'^fucai3D_3zs/', "fucai3D_3zs"),
    url(r'^fucai3D_3zs_0/', "fucai3D_3zs_0"),
    url(r'^fucai3D_6zl/', "fucai3D_6zl"),
    url(r'^login$', "login"),
    url(r'^chk_login$', "chk_login"),
    url(r'^show_recharge$', "show_recharge"),
    url(r'^fifteen_five/', "fifteen_five"), #15选5
    url(r'^fifteen_fiveDT/', "fifteen_fiveDT"), #15选5胆托
    url(r'^six_one/', "six_one"),  #东方6+1
    url(r'^result_receive$', "result_receive"),  #回调地址
    url(r'^all_qushitu$', "all_qushitu"),
    url(r'^help_center$', "help_center"),
    
    url(r'^guanli$', "guanli"),  #管理
    url(r'^version$', "get_client_version", name="get_client_version"),  #管理
    url(r'^getsdresult/(?P<sdbatchid>[^/]+)$', "get_sd_result"),
    url(r'^reporterror/(?P<errormsg>[^/]+)$', "reporterror"),
#    url(r'^logout$', "logout"),  #退出登录
)

#期次功能相关
urlpatterns += patterns('lottery_terminal.view.period',
    url(r'^period$', "init_period",name='init_period'),
    url(r'^query_periodid/(?P<lotterycode>[^/]+)$', 'query_period', name='query_period'),
    url(r'^query_awardcode/(?P<lotterycode>[^/]+)/(?P<periodid>[^/]+)$', 'query_awardcode', name='query_awardcode'),
)

#管理功能相关
urlpatterns += patterns('lottery_terminal.view.manager',
    url(r'^submit_recharge$', "submit_recharge",name="submit_recharge"),
    url(r'^sale_info/(?P<currentpage>[^/]+)/(?P<mac>[^/]+)$', "sale_info",name='sale_info'),  #销售记录
    url(r'^register_card/(?P<cardNo>[^/]+)/(?P<mac>[^/]+)$', "register_card",name='register_card'),  #销售记录
    url(r'^get_sn$', "get_sn",name="get_sn"),  #获取序列号终端号
    url(r'^get_sn/(?P<licensecode>[^/]+)$', "get_sn2",name="get_sn2"),  #获取序列号终端号
)

#彩票功能相关
urlpatterns += patterns('lottery_terminal.view.ticket',
    url(r'^chk_buy_lottery', "chk_buy_lottery", name="chk_buy_lottery"),  #购票前检查
    url(r'^buy_lottery', "buy_lottery", name="buy_lottery"),  #购票
    url(r'^zhongjiang/(?P<batchid>[^/]+)$', "zhongjiang",name="zhongjiang"),  #扫描彩票
    url(r'^prize_confirm$', "prize_confirm", name="prize_confirm"),  #确认兑奖
    url(r'^trade_pos_fail$', "trade_pos_fail", name="trade_pos_fail"),  #pos故障交易失败
)

#走势图功能相关
urlpatterns += patterns('lottery_terminal.view.zoushi',
    #url(r'^six_one_trend$', "six_one_trend", name="six_one_trend"),
    #url(r'^ssc_trend$', "ssc_trend", name="ssc_trend"),
    #url(r'^qushitu/(?P<href>[^/]+)$', "qushitu", name="qushitu"),
    url(r'^qushi/ssqqushitu$', "ssqqushitu"),
    url(r'^qushi/shishicai', "sscqushitu"),
    url(r'^qushi/fifteen_fivequshitu$', "fifteen_fivequshitu"),
    url(r'^qushi/fucai3D', "fucai3Dqushitu"),
    url(r'^qushi/qilecai', "qilecaiqushitu"),
    url(r'^qushi/six_one', "six_onequshitu"),
)

urlpatterns += patterns('lottery_terminal.view.abtest',
    #url(r'^six_one_trend$', "six_one_trend", name="six_one_trend"),
    #url(r'^ssc_trend$', "ssc_trend", name="ssc_trend"),
    #url(r'^qushitu/(?P<href>[^/]+)$', "qushitu", name="qushitu"),
    url(r'^test/chkbuy$', "chk_buy_lottery2"),
    url(r'^test/buy$', "buy_lottery2"),
    url(r'^test/getperiod$', "test_rbc"),
    url(r'^test/thrift$', "test_thrift"),
    url(r'^test/testdb$', "test_db"),
)
